package ooday01;

public class Car {
    //成员变量--描述对象属性
    String brand;
    String color;
    double price;
    int capacity;
    //构造方法
    Car(){

    }
    Car(String brand, String color, double price, int capacity) {
        this.brand = brand;
        this.color = color;
        this.price = price;
        this.capacity = capacity;

    }



    void start(){
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块的汽车启动了...");
    }
    void run(){
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块的汽车跑了...");
    }
    void stop(){
        System.out.println(this.brand+"牌子的"+this.color+"色的"+this.capacity+"座的"+this.price+"块的汽车停了...");
    }






}
